<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Add Product</title>
</head>
<body>
<h1>Add Product</h1>
<form action="#" th:action="@{/product/add}" th:object="${product}" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td><label for="name">Name:</label></td>
            <td><input type="text" id="name" th:field="*{name}"></td>
        </tr>
        <tr>
            <td><label for="description">Description:</label></td>
            <td><textarea id="description" th:field="*{description}"></textarea></td>
        </tr>
        <tr>
            <td><label for="price">Price:</label></td>
            <td><input type="number" id="price" th:field="*{price}"></td>
        </tr>
        <tr>
            <td><label for="image">Image:</label></td>
            <td><input type="file" id="image" name="image"></td>
        </tr>
        <tr>
            <td colspan="2"><button type="submit">Add Product</button></td>
        </tr>
    </table>
</form>
</body>
</html>